<?php 

if(isset($_GET['id'])){
	$id = $_GET['id'];
	$data = $_POST;
	$data['create_time']=time();

	$db = include './db.php';

	$db[$id]= $data;

	$str = var_export($db,true);

	$str = "<?php return ".$str." ?>";

	file_put_contents('./db.php', $str);

	header("location:./index.php");

}else{
	echo "sdfsdf";
}
















 ?>